<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@page import="loginmysql.*, java.util.*"%>
<%	
	MysqlLogin.connect();	

	String catVieja = request.getParameter("old");
	String catNueva = request.getParameter("new");
	System.out.println(catVieja + catNueva);
	MysqlLogin.insert("UPDATE status SET nombre ='"+catNueva+"' WHERE nombre='"+catVieja+"'");

	MysqlLogin.disconnect();
%>